package hashbuck2;

import hashbuck.HashBuck;

public class Test {
    public static void main(String[] args) {
        Person p1 = new Person("123");
        Person p2 = new Person("234");
        Person p3 = new Person("345");
        Person p4 = new Person("456");
        Person p5 = new Person("567");
        Person p6 = new Person("678");
        Person p7 = new Person("789");

        HashBuck2<Person,Integer> hashBuck2 = new HashBuck2<>();
        hashBuck2.put(p1,1);
        hashBuck2.put(p2,2);
        hashBuck2.put(p3,3);
        hashBuck2.put(p4,4);
        hashBuck2.put(p5,5);
        hashBuck2.put(p6,6);
        hashBuck2.put(p7,7);




//        System.out.println(p1.hashCode());
//        System.out.println(p2.hashCode());
        System.out.println("======");
        System.out.println(hashBuck2.getValue(p5));

    }
}
